diff --git a/.github/workflows/automated-build.yaml b/.github/workflows/automated-build.yaml new file mode 100644 index 0000000..eda8834 --- /dev/null +++ b/.github/workflows/automated-build.yaml @@ -0,0 +1,46 @@ +name: Automated Build + +on: + push: + branches: + - main + +env: + DOCKER_BUILDKIT: 1 + +jobs: + push: + + runs-on: ubuntu-latest + if: github.event_name == 'push' + + permissions: + contents: read + packages: write + + steps: + - + uses: actions/checkout@v3 + + - + name: Log into GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ github.token }} + + - + uses: docker/setup-qemu-action@v2 + + - + uses: docker/setup-buildx-action@v2 + + - + name: hasher + uses: docker/build-push-action@v5 + with: + context: {{defaultContext}}:hasher + platforms: linux/amd64,linux/arm64,linux/arm/v7 + push: true + tags: ghcr.io/jpetazzo/dockercoins/hasher:v0.1