Skip to content

build args

build args #17

Workflow file for this run

name: Release Containerimage
on:
workflow_dispatch:
jobs:
build-test-push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: checkout
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build (and test) project with Maven
run: mvn -B package -D skipTests --file pom.xml
- uses: nelonoel/branch-name@v1.0.1
- name: Set outputs
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set env
run: export BRANCH=${BRANCH_NAME}
- run: echo "BRANCH=$BRANCH_NAME" >> $GITHUB_ENV
- run: echo "COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- run: echo ${BRANCH}
- uses: mr-smithers-excellent/docker-build-push@v6
name: push-container-image
with:
image: mega-backend
registry: ghcr.io
dockerfile: Containerfile

Check failure on line 40 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yaml

Invalid workflow file

You have an error in your yaml syntax on line 40
buildArgs: [COMMIT=${{ env.COMMIT}}, BRANCH=${{ env.BRANCH}}, VERSION=${{ env.VERSION}}]
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}