You've already forked docker-compose-docker
feaf09a116
Build / build-amd64 (pull_request) Successful in 47s
Lint Markdown files / markdown-lint (pull_request) Successful in 6s
Build / build-arm64 (pull_request) Successful in 1m31s
Lint Markdown files / markdown-lint (push) Successful in 5s
Release latest / push-amd64 (push) Successful in 1m7s
Release latest / push-arm64 (push) Successful in 2m31s
Release latest / push-manifest (push) Successful in 5s
Release latest / sync-to-hub-docker-io (push) Successful in 42s
96 lines
3.4 KiB
YAML
96 lines
3.4 KiB
YAML
name: Release latest
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
push-arm64:
|
|
runs-on: ubuntu-latest-arm64
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
|
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
|
with:
|
|
registry: git.cryptic.systems
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
docker buildx build \
|
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
|
--file Dockerfile \
|
|
--platform linux/arm64 \
|
|
--provenance false \
|
|
--push \
|
|
--tag git.cryptic.systems/volker.raschek/docker-compose:latest-arm64 \
|
|
.
|
|
|
|
push-amd64:
|
|
runs-on: ubuntu-latest-amd64
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
|
|
- uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
|
|
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
|
|
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
|
with:
|
|
registry: git.cryptic.systems
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
|
|
|
- name: Build and push image
|
|
run: |
|
|
docker buildx build \
|
|
--build-arg BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")" \
|
|
--file Dockerfile \
|
|
--platform linux/amd64 \
|
|
--provenance false \
|
|
--push \
|
|
--tag git.cryptic.systems/volker.raschek/docker-compose:latest-amd64 \
|
|
.
|
|
|
|
push-manifest:
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- push-arm64
|
|
- push-amd64
|
|
steps:
|
|
- uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
|
|
with:
|
|
registry: git.cryptic.systems
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }}
|
|
|
|
- name: Create and push manifest
|
|
run: |
|
|
docker manifest create git.cryptic.systems/volker.raschek/docker-compose:latest \
|
|
--amend git.cryptic.systems/volker.raschek/docker-compose:latest-amd64 \
|
|
--amend git.cryptic.systems/volker.raschek/docker-compose:latest-arm64
|
|
|
|
docker manifest push git.cryptic.systems/volker.raschek/docker-compose:latest
|
|
|
|
sync-to-hub-docker-io:
|
|
needs:
|
|
- push-manifest
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Copy images to docker.io
|
|
run: |
|
|
apt-get update --yes
|
|
apt-get install --yes skopeo
|
|
skopeo copy \
|
|
--all \
|
|
--dest-password ${{ secrets.DOCKER_IO_PASSWORD }} \
|
|
--dest-username ${{ secrets.DOCKER_IO_USERNAME }} \
|
|
--src-password ${{ secrets.GIT_CRYPTIC_SYSTEMS_PACKAGE_REGISTRY_TOKEN }} \
|
|
--src-username volker.raschek \
|
|
docker://git.cryptic.systems/volker.raschek/docker-compose:latest \
|
|
docker://docker.io/volkerraschek/docker-compose:latest
|