diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..e0cb0ea --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,25 @@ +steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Github Packages + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build image and push to GitHub Container Registry + uses: docker/build-push-action@v2 + with: + context: . + tags: | + ghcr.io/snowflake-labs/icetire:latest + push: ${{ github.ref == 'refs/heads/main' }} + + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }}