Skip to content

Commit

Permalink
spike: switch auth method, and run workflow on push to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
samholdawayinshur committed May 30, 2024
1 parent d7e5d46 commit f4c060d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tag_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish Test Docker image

on:
push:
tags:
- 'v0.*-test'
branches:
- spike/CLOUD-2464_multi-arch-iac-image

jobs:
push_to_registry:
Expand All @@ -12,7 +12,7 @@ jobs:
- name: Extract Tags
id: tags
run: |
IMAGE_VERSION="${GITHUB_REF/refs\/tags\//}"
IMAGE_VERSION="test"
TAGS="ghcr.io/inshur/fy-test:$IMAGE_VERSION"
echo "IMAGE_VERSION=${IMAGE_VERSION}" >> "$GITHUB_ENV"
echo "TAGS=${TAGS}" >> "$GITHUB_ENV"
Expand All @@ -28,8 +28,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push to GitHub Packages
uses: docker/build-push-action@v5
Expand Down

0 comments on commit f4c060d

Please sign in to comment.