Merge pull request #114 from robertjndw/ci/add-dependabot #306
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 and push docker image | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login ghcr | |
env: | |
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }} | |
run: docker login ghcr.io --username giorgi-o --password "$GHCR_TOKEN" | |
- name: Build and Push Image | |
run: | | |
docker buildx build \ | |
--tag ghcr.io/giorgi-o/skinpeek/skinpeek:latest \ | |
--tag ghcr.io/giorgi-o/skinpeek/skinpeek:"$GITHUB_SHA" \ | |
--platform linux/amd64,linux/arm64/v8 \ | |
--file ./Dockerfile \ | |
--output type=image,push=true . |