Skip to content

Commit

Permalink
ci: add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Jan 3, 2023
1 parent cd76339 commit 015c427
Showing 1 changed file with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
name: Push Multi Arch Image
name: Publish Release
on:
workflow_run:
workflows: ["Build arm64 Image", "Build x86 Image"]
branches:
- master
- release-*
types:
- completed
workflow_dispatch:

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true

jobs:
build:
name: Push multi arch images
runs-on: ubuntu-20.04
name: Publish Images
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v3

- name: Push
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'release') }}
- name: Publish
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
COMMIT: ${{ github.sha }}
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
TAG=$(cat VERSION)
Expand Down

0 comments on commit 015c427

Please sign in to comment.