fix: use amd64 #17
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: 'build images' | |
on: | |
push: | |
jobs: | |
docker: | |
runs-on: ubuntu-22 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Prepare | |
id: prep | |
run: | | |
DOCKER_IMAGE=docker.io/kainlite/tr-gh | |
SHORTREF=${GITHUB_SHA::8} | |
TAG="${DOCKER_IMAGE}:${SHORTREF}" | |
echo tag=${TAG} >> ${GITHUB_OUTPUT} | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: ${{ steps.prep.outputs.tag }} |