forked from kenchan0130/docker-simplesamlphp
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 1.29 KB
/
release-develop.yml
File metadata and controls
42 lines (40 loc) · 1.29 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
name: Release docker image as develop
on:
push:
branches:
- master
jobs:
release-image-to-github:
name: Release image to GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push to GitHub
run: |
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY_HOST}" -u "${REGISTRY_USERNAME}" --password-stdin
make release RELEASE_TAGS="develop"
env:
REGISTRY_HOST: ghcr.io
REGISTRY_USERNAME: ${{ github.repository_owner }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release-image-to-docker-hub:
name: Release image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push to Docker Hub
run: |
echo "${REGISTRY_TOKEN}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin
make release RELEASE_TAGS="develop"
env:
REGISTRY_HOST: index.docker.io
REGISTRY_USERNAME: 3breadt
REGISTRY_TOKEN: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}