Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore(github): pubish amd images to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Mar 22, 2024
1 parent 2441f0c commit 7f65171
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,40 +18,40 @@ jobs:
- run: yarn
- run: yarn ${{ matrix.step }}

# push:
# needs: [build]
# if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
# runs-on: ubuntu-latest
# permissions:
# id-token: write
# contents: read
# checks: write
# packages: write
# steps:
# - uses: actions/checkout@v3
push:
needs: [build]
if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
checks: write
packages: write
steps:
- uses: actions/checkout@v3

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v2

# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@v2
# - name: Setup Docker buildx
# uses: docker/setup-buildx-action@v2

# - name: Log in to the GitHub Container Registry
# uses: docker/login-action@v1
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Build and push container image to GitHub Container Registry
# uses: docker/build-push-action@v4
# with:
# push: true
# platforms: linux/amd64,linux/arm64
# # TODO: add build version node args
# tags: |
# ghcr.io/ar-io/arns-resolver:${{ github.sha }}
# ghcr.io/ar-io/arns-resolver:latest
- name: Build and push container image to GitHub Container Registry
uses: docker/build-push-action@v4
with:
push: true
platforms: linux/amd64 #linux/arm64
# TODO: add build version node args
tags: |
ghcr.io/ar-io/arns-resolver:${{ github.sha }}
ghcr.io/ar-io/arns-resolver:latest
# deploy:
# if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 7f65171

Please sign in to comment.