-
Notifications
You must be signed in to change notification settings - Fork 45
57 lines (48 loc) · 2.03 KB
/
update-rb-ubuntu.yml
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
47
48
49
50
51
52
53
54
55
56
57
name: Update rb-ubuntu base image
on:
schedule:
- cron: "50 10 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
if: github.repository == 'jvm-repo-rebuild/reproducible-central'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Log into ghcr.io registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: bin/docker
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/jvm-repo-rebuild/rb-ubuntu:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Status Diffoscope Before
run: |
docker image ls registry.salsa.debian.org/reproducible-builds/diffoscope:latest
docker run --rm registry.salsa.debian.org/reproducible-builds/diffoscope:latest --version
docker image ls ghcr.io/jvm-repo-rebuild/diffoscope:latest
docker run --rm ghcr.io/jvm-repo-rebuild/diffoscope:latest --version
- name: Copy Diffoscope to ghcr.io
uses: truemark/skopeo-copy-action@v1
with:
src-image: "docker://registry.salsa.debian.org/reproducible-builds/diffoscope:latest"
dest-image: "docker://ghcr.io/jvm-repo-rebuild/diffoscope:latest"
dest-username: ${{ github.actor }}
dest-password: ${{ secrets.GITHUB_TOKEN }}
- name: Status Diffoscope After
run: |
docker image ls registry.salsa.debian.org/reproducible-builds/diffoscope:latest
docker run --rm registry.salsa.debian.org/reproducible-builds/diffoscope:latest --version
docker image ls ghcr.io/jvm-repo-rebuild/diffoscope:latest
docker run --rm ghcr.io/jvm-repo-rebuild/diffoscope:latest --version