Skip to content

BAARC-149: Update image github workflow - test #1

BAARC-149: Update image github workflow - test

BAARC-149: Update image github workflow - test #1

Workflow file for this run

name: Build and push OCI image to Docker Hub
on:
push:
branches: ["refactor/multi-stage-docker-img"]
jobs:
image:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Get build args
id: build_args
run: |
echo "APP_COMMIT=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
echo "APP_VERSION=$(git describe --tags --always --abbrev=0)" >> "$GITHUB_OUTPUT"
- name: Show build args
env:
APP_COMMIT: ${{ steps.build_args.outputs.APP_COMMIT }}
APP_VERSION: ${{ steps.build_args.outputs.APP_VERSION }}
run: |
echo $APP_COMMIT
echo $APP_VERSION
#
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version-file: "./go.mod"
#
# - name: Log in to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
#
# - name: Extract metadata (tags, labels)
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: bsvb/arc
#
# - name: Build and push image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
# build-args: |
# APP_COMMIT=${{ steps.build_args.outputs.APP_COMMIT }}
# APP_VERSION=${{ steps.build_args.outputs.APP_VERSION }}