Skip to content

Commit

Permalink
Add Github Workflow Ubuntu 22.04 Jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
theAkito committed Sep 6, 2024
1 parent 97631de commit f1f84bf
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/docker-build-push-app-ubuntu-jammy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Docker Image Build and Push - Ubuntu 22.04 Jammy

on:
push:
branches:
- master
tags:
- "*.*.*"
pull_request:

jobs:

build-push:

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Git Metadata for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
akito13/nim
flavor: |
latest=true
prefix=
suffix=
tags: |
type=edge,branch=master
type=raw,value=libc
type=raw,value=ubuntu
type=raw,value=jammy
type=raw,value=jammy-20240808
type=schedule,pattern={{date 'YYYYMMDD'}}
type=schedule,pattern={{date 'YYYYMMDD'}}-ubuntu
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern={{version}}-ubuntu
type=semver,pattern={{major}}.{{minor}}-ubuntu
type=semver,pattern={{major}}-ubuntu
type=sha,prefix=,format=long
type=sha,prefix=,format=short
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
image=moby/buildkit:v0.12.0
buildkitd-flags: --debug

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
file: ./ubuntu22.Dockerfile
platforms: linux/ppc64le,linux/arm/v7,linux/arm64/v8,linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit f1f84bf

Please sign in to comment.