From e0f6ac5fdbfff33259af44ddd68b5f142ee80e58 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Sat, 30 Oct 2021 15:53:53 -0700 Subject: [PATCH] chore: publish images --- .github/workflows/publish_v1.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_v1.yml b/.github/workflows/publish_v1.yml index 750a94f..5a28c42 100644 --- a/.github/workflows/publish_v1.yml +++ b/.github/workflows/publish_v1.yml @@ -4,7 +4,7 @@ on: tags: [ 'v1.*' ] jobs: - publish: + tag: runs-on: ubuntu-latest steps: - name: checkout @@ -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)