fix: docker build on CI #7
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: latest | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
latest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-qemu-action@v3 | |
- uses: docker/setup-buildx-action@v3 | |
- name: Sign into Docker | |
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin | |
- name: Build latest Docker image and push to Docker Hub | |
run: docker buildx build --push -t justintime50/glass --build-arg PROD=true --platform linux/amd64,linux/arm64 . |