Skip to content

2.25.1

2.25.1 #7

name: prod-ubuntu-amd64
"on":
pull_request:
branches:
- master
types:
- closed
jobs:
build-and-push-ubuntu-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get tag
id: repository
run: echo "tag=$(cat version)" > $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.API_TOKEN }}
- name: Build and push ubuntu
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile.ubuntu22.04-lts-amd64
platforms: linux/amd64
push: true
tags: |
ghcr.io/thetaylorlee/docker-transcodeautomation:ubuntu22.04-lts-amd64-${{ env.tag }}
ghcr.io/thetaylorlee/docker-transcodeautomation:ubuntu22.04-lts-amd64