Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
chore: update github action
Browse files Browse the repository at this point in the history
Signed-off-by: Brad McCoy <[email protected]>
  • Loading branch information
bradmccoydev committed Nov 8, 2022
1 parent e678e3c commit ea17702
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
uses: docker/login-action@v1
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
registry: ghcr.io
username: ${{ env.GITHUB_USER }}
username: ${{ github.actor }}
password: ${{ env.GITHUB_TOKEN }}

- name: Download artifact
Expand All @@ -41,6 +41,13 @@ jobs:
name: ${{ inputs.type }}
path: ${{ steps.variables.outputs.artifact_path }}

- name: Build & Push Docker Image
run: |
echo ${{ steps.variables.outputs.image }}
REPO_OWNER=`echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]'`
docker build -t ghcr.io/${REPO_OWNER}/backstage/{{ inputs.type }}:0.0.1 -f ${{ steps.variables.outputs.dockerfile }} .
docker push ghcr.io/${REPO_OWNER}/backstage/{{ inputs.type }}:0.0.1
- name: Set up Docker metadata
id: metadata
uses: docker/metadata-action@v3
Expand Down

0 comments on commit ea17702

Please sign in to comment.