Skip to content

Commit

Permalink
chore: publish images
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Oct 30, 2021
1 parent 346f8bc commit e0f6ac5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish_v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
tags: [ 'v1.*' ]

jobs:
publish:
tag:
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -15,3 +15,14 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"
git tag -fa v1 -m "update v1 tag"
git push origin v1 --force
image:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: docker build
run: docker build -t ghcr.io/bobheadxi/gobenchdata:$(git describe --tags)
- name: Publish to GitHub Container Registry
run: |
echo ${{ secrets.ACCESS_TOKEN }} | docker login ghcr.io --username $GITHUB_ACTOR --password-stdin
docker push ghcr.io/gobenchdata/gobenchdata:$(git describe --tags)

0 comments on commit e0f6ac5

Please sign in to comment.