Update publish.yml #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Container | ||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build container image | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
- name: Verify that tag exists in origin/master | ||
run: | | ||
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | ||
git branch --remote --contains | grep origin/master | ||
- name: Set VERSION variable from tag | ||
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | ||
- name: Log into docker hub | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_ACCOUNT }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
- name: Build container | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
build-args: | | ||
version=${VERSION} | ||
tags: corehelpers/azurebackup:${{ VERSION }} | ||
Check failure on line 38 in .github/workflows/publish.yml GitHub Actions / Publish ContainerInvalid workflow file
|
||