Skip to content

Commit

Permalink
fix(ci): use latest docker/login action
Browse files Browse the repository at this point in the history
Signed-off-by: Sunil Thaha <sthaha@redhat.com>
  • Loading branch information
sthaha committed Aug 15, 2023
1 parent afe8d39 commit 1334c76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: images

on:
push:
Expand All @@ -18,7 +18,7 @@ jobs:
go-version-file: go.mod

- name: Login to Quay
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: quay.io/sustainable_computing_io
username: ${{ secrets.BOT_NAME }}
Expand All @@ -27,11 +27,14 @@ jobs:
- name: Generate Version
id: version
run: |
echo ${{ github.ref }}
echo $GITHUB_REF
if [[ "$GITHUB_REF" =~ refs/tags ]]; then
version="$(cat VERSION)"
else
version="$(cat VERSION)-$(date +%y%m%d%H%M%S)"
fi
echo VERSION=$version
echo "version=$version" >> $GITHUB_OUTPUT
- name: Build Operator
Expand Down

0 comments on commit 1334c76

Please sign in to comment.