-
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 741 Bytes
/
Copy pathdocker_deploy.yml
File metadata and controls
30 lines (27 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Build and Publish Docker Image
on:
release:
types: [published]
jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- id: version
run: |
VERSION="${{ github.event.release.tag_name }}"
VERSION=${VERSION#v}
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
docker:
needs: version
uses: ./.github/workflows/docker_build_or_deploy.yml
# permissions:
# contents: read
# id-token: write
# attestations: write
with:
push: true
version: ${{ needs.version.outputs.version }}
secrets:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}