-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (37 loc) · 1.42 KB
/
deploy-image-dispatch.yaml
File metadata and controls
45 lines (37 loc) · 1.42 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# name: Build and Push Docker Image on Another Statgarten Dependency Update
# on:
# repository_dispatch:
# types: [statgarten_update]
# jobs:
# build-and-push-image:
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
# with:
# images: |
# statgarten/dockerImage
# - name: Set TAG env
# run: echo "RELEASE_VERSION=v$(date +'%Y%m%d')" >> $GITHUB_ENV
# - name: Metadata
# run: echo "container tag will be 'lastest' and '${{ env.RELEASE_VERSION }}'"
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to DockerHub/
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# file: core.dockerfile
# push: true
# tags: |
# dao0312/statgarten:latest
# dao0312/statgarten:${{ env.RELEASE_VERSION }}
# ghcr.io/${{ github.repository_owner }}/statgarten:latest
# ghcr.io/${{ github.repository_owner }}/statgarten:${{ env.RELEASE_VERSION }}