-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.05 KB
/
push_main.yaml
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
46
name: Push (main)
on:
push:
branches:
- main
jobs:
build:
name: Build image
uses: ./.github/workflows/build_image.yaml
tests:
name: Run tests
uses: ./.github/workflows/run_tests.yaml
needs:
- build
publish:
name: Publish image
runs-on: ubuntu-latest
needs:
- build
- tests
permissions:
packages: write
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: hybridilusmu
path: /tmp
- name: Load image
run: docker load --input /tmp/hybridilusmu.tar
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag image
run: docker tag hybridilusmu ghcr.io/funidata/hybridilusmu:next
- name: Push image to GHCR
run: docker push ghcr.io/funidata/hybridilusmu:next