Skip to content

using docker hub and supporting amd64 + arm64 #2

using docker hub and supporting amd64 + arm64

using docker hub and supporting amd64 + arm64 #2

name: Publish Docker Image CI
on:
push:
branches: [ "release" ]
pull_request:
branches: [ "release" ]
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to Docker Container registry
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: alshammas/fitx-utilization-proxy:latest