Skip to content

Commit

Permalink
Update prod.workflow.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yajith authored Aug 14, 2024
1 parent a623435 commit 0c9825f
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/prod.workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Build production docker image to Portainer

on:
push:
branches:
- main
workflow_dispatch:
inputs:
unpacker_version:
description: "portainer-updater version. e.g. 2.20.0"
required: true
release_branch:
description: "release branch. e.g. release/2.20"
required: true

jobs:
release:
Expand All @@ -12,18 +17,24 @@ jobs:
name: production
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/[email protected]
with:
ref: ${{ github.event.inputs.release_branch }}

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/[email protected]

# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3.0.0
with:
driver-opts: image=moby/buildkit:v0.10.6

- uses: actions/setup-go@v3
with:
go-version: "1.22.5"

- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin

Expand Down

0 comments on commit 0c9825f

Please sign in to comment.