Removing ARM64 in GHA #50
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
name: Docker Hub Publish | |
on: | |
push: | |
branches: [master] | |
tags: ["v*.*.*"] | |
pull_request: | |
branches: [master] | |
env: | |
REGISTRY: docker.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
if: "!contains(github.event.commits[0].message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Setup QEMU | |
- name: Setup QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v3 | |
# Setup Docker BuildX | |
- name: Setup Docker BuildX | |
id: buildx | |
uses: docker/setup-buildx-action@v2 | |
# Build and push Docker image for poolprice | |
- name: Build and push poolprice image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./poolprice | |
file: ./poolprice/Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
platforms: "linux/amd64" | |
tags: ${{ secrets.DOCKER_USERNAME }}/poolprice:latest | |
# Build and push Docker image for weather | |
- name: Build and push weather image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ./weather | |
file: ./weather/Dockerfile | |
push: ${{ github.event_name != 'pull_request' }} | |
platforms: "linux/amd64" | |
tags: ${{ secrets.DOCKER_USERNAME }}/weather:latest |