Skip to content

only build for amd64 #3

only build for amd64

only build for amd64 #3

Workflow file for this run

name: Build and Publish REST Docker Image
on:
push:
branches:
- main
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
bsplu/rest_docker:${{ github.ref_name }}
bsplu/rest_docker:latest