updates #22
This file contains hidden or 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: m13253-doh | |
| on: | |
| workflow_dispatch: | |
| push: | |
| paths: | |
| - 'm13253-doh/*' | |
| jobs: | |
| build: | |
| name: Build & Push m13253-doh Container | |
| runs-on: ubuntu-latest | |
| env: | |
| APP: m13253-doh | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Login to DockerHub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Login to GitHub Packages | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GH_PACKAGE_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v4 | |
| with: | |
| context: ${{ env.APP }} | |
| file: ${{ env.APP }}/Dockerfile | |
| platforms: linux/386,linux/amd64,linux/arm64 | |
| push: true | |
| tags: | | |
| ghcr.io/${{ github.repository }}/${{ env.APP }}:latest | |
| ${{ github.repository_owner }}/${{ env.APP }}:latest |