Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
kengo-k committed Jun 1, 2024
1 parent 641f94f commit 13ded9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ runs:
token: ${{ inputs.token }}
args: ${{ inputs.args }}

- name: login to ghcr
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ inputs.token }}

- name: checkout latest commit
uses: actions/checkout@v2

Expand All @@ -30,4 +37,5 @@ runs:
tag=$(echo "$element" | jq -r '.tag')
echo "path: $path, name: $name, tag: $tag"
docker build -t ghcr.io/${{ github.actor }}/$name:$tag -f $path $(dirname $path)
docker push ghcr.io/${{ github.actor }}/$name:$tag
done

0 comments on commit 13ded9a

Please sign in to comment.