-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[github_actions] Upload containers images
including the new Arch Linux and now supported Ubuntu image.
- Loading branch information
1 parent
7542f33
commit 47aa922
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Upload all container images | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
build: | ||
name: Upload all container images | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Change directory | ||
run: cd $GITHUB_WORKSPACE | ||
- name: Login to Quay.io container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.QUAY_USER }} | ||
password: ${{ secrets.QUAY_TOKEN }} | ||
- name: Build and push Arch Linux container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Containerfile.archlinux | ||
push: true | ||
tags: | | ||
lukeshortcloud/dev-archlinux:latest | ||
lukeshortcloud/dev-archlinux:${{ github.ref_name }} | ||
quay.io/lukeshortcloud/dev-archlinux:latest | ||
quay.io/lukeshortcloud/dev-archlinux:${{ github.ref_name }} | ||
- name: Free up storage space previously used by docker | ||
run: docker system prune --all --force | ||
- name: Build and push Debian container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Containerfile.debian | ||
push: true | ||
tags: quay.io/lukeshortcloud/dev-debian:latest,quay.io/lukeshortcloud/dev-debian:${{ github.ref_name }} | ||
- name: Free up storage space previously used by docker | ||
run: docker system prune --all --force | ||
- name: Build and push Fedora container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Containerfile.fedora | ||
push: true | ||
tags: quay.io/lukeshortcloud/dev-fedora:latest,quay.io./lukeshortcloud/dev-fedora:${{ github.ref_name }} | ||
- name: Free up storage space previously used by docker | ||
run: docker system prune --all --force | ||
- name: Prepare Ubuntu Containerfile | ||
run: cp Containerfile.debian Containerfile.ubuntu && sed -i s'/^FROM debian:.*/FROM ubuntu:24.04/'g Containerfile.ubuntu | ||
- name: Build and push Ubuntu container | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Containerfile.ubuntu | ||
push: true | ||
tags: quay.io/lukeshortcloud/dev-ubuntu:latest,quay.io/lukeshortcloud/dev-ubuntu:${{ github.ref_name }} |