Skip to content

Commit 8fd0ee5

Browse files
committed
ci: fix create docker image based on reference instead of branch
1 parent 0a6b401 commit 8fd0ee5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/release-automated.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
run: echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}"
4949
- name: Checkout repository
5050
uses: actions/checkout@v2
51+
with:
52+
ref: ${{ needs.release.outputs.current_tag }}
5153
- name: Set up QEMU
5254
id: qemu
5355
uses: docker/setup-qemu-action@v1

.github/workflows/release-manual-docker.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
# part of the automated release workflow.
44

55
name: release-manual-docker
6-
on: workflow_dispatch
6+
on:
7+
workflow_dispatch:
8+
inputs:
9+
ref:
10+
default: ''
11+
description: 'Reference (tag / SHA):'
712
env:
813
REGISTRY: docker.io
914
IMAGE_NAME: parseplatform/parse-dashboard
@@ -19,6 +24,8 @@ jobs:
1924
run: echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}"
2025
- name: Checkout repository
2126
uses: actions/checkout@v2
27+
with:
28+
ref: ${{ github.event.inputs.ref }}
2229
- name: Set up QEMU
2330
id: qemu
2431
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)