Skip to content

Commit fad0d63

Browse files
authored
Update release-alpine.yml
1 parent a6d2773 commit fad0d63

File tree

1 file changed

+43
-4
lines changed

1 file changed

+43
-4
lines changed

Diff for: .github/workflows/release-alpine.yml

+43-4
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,46 @@ jobs:
4848
run: ./heplify -h
4949
shell: alpine.sh {0}
5050

51-
- run: |
52-
pwd
53-
ls -alF
54-
ls -alF ${{ steps.alpine-root.outputs.root-path }}/heplify
51+
- name: Upload
52+
if: ${{ github.event_name != 'workflow_dispatch' }}
53+
uses: skx/github-action-publish-binaries@master
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
args: 'heplify'
58+
59+
docker-push:
60+
if: ${{ github.event_name != 'workflow_dispatch' }}
61+
runs-on: ubuntu-latest
62+
needs: build
63+
permissions:
64+
packages: write
65+
contents: read
66+
67+
steps:
68+
- uses: actions/checkout@v4
69+
- name: Log in to the Container registry
70+
uses: docker/[email protected]
71+
with:
72+
registry: ${{ env.REGISTRY }}
73+
username: ${{ github.actor }}
74+
password: ${{ secrets.GITHUB_TOKEN }}
75+
76+
- name: Docker meta
77+
id: meta
78+
uses: docker/[email protected]
79+
with:
80+
images: |
81+
ghcr.io/${{ github.repository }}
82+
tags: |
83+
latest
84+
${{ github.ref_name }}
85+
86+
- name: Build and push
87+
uses: docker/[email protected]
88+
with:
89+
context: .
90+
file: ./docker/heplify/Dockerfile
91+
push: ${{ github.event_name != 'pull_request' }}
92+
tags: ${{ steps.meta.outputs.tags }}
93+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)