Skip to content

Commit

Permalink
ci: refactor previous push multi arch (#2164)
Browse files Browse the repository at this point in the history
Publish based on branch that can be triggerred manually and nightly build master branch to avoid frequent image update.
  • Loading branch information
oilbeater committed Dec 14, 2022
1 parent 5e4955c commit adecee7
Showing 1 changed file with 6 additions and 13 deletions.
@@ -1,31 +1,24 @@
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:
schedule:
- cron: "20 16 * * *"

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

jobs:
build:
name: Push multi arch images
name: Publish Images
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2

- 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 adecee7

Please sign in to comment.