this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'jake/add-container-push-aws'

+60 -8
+52
.github/workflows/container-bigsky-aws.yaml
··· 1 + name: container-bigsky-aws 2 + on: [push] 3 + env: 4 + REGISTRY: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_REGISTRY }} 5 + USERNAME: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_USERNAME }} 6 + PASSWORD: ${{ secrets.AWS_ECR_REGISTRY_USEAST2_PACKAGES_PASSWORD }} 7 + # github.repository as <account>/<repo> 8 + IMAGE_NAME: bigsky 9 + 10 + jobs: 11 + container-bigsky-aws: 12 + runs-on: ubuntu-latest 13 + permissions: 14 + contents: read 15 + packages: write 16 + id-token: write 17 + 18 + steps: 19 + - name: Checkout repository 20 + uses: actions/checkout@v3 21 + 22 + - name: Setup Docker buildx 23 + uses: docker/setup-buildx-action@v1 24 + 25 + - name: Log into registry ${{ env.REGISTRY }} 26 + uses: docker/login-action@v2 27 + with: 28 + registry: ${{ env.REGISTRY }} 29 + username: ${{ env.USERNAME }} 30 + password: ${{ env.PASSWORD }} 31 + ecr: false 32 + 33 + - name: Extract Docker metadata 34 + id: meta 35 + uses: docker/metadata-action@v4 36 + with: 37 + images: | 38 + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 39 + tags: | 40 + type=sha,enable=true,priority=100,prefix=,suffix=,format=long 41 + 42 + - name: Build and push Docker image 43 + id: build-and-push 44 + uses: docker/build-push-action@v4 45 + with: 46 + context: . 47 + file: ./cmd/bigsky/Dockerfile 48 + push: ${{ github.event_name != 'pull_request' }} 49 + tags: ${{ steps.meta.outputs.tags }} 50 + labels: ${{ steps.meta.outputs.labels }} 51 + cache-from: type=gha 52 + cache-to: type=gha,mode=max
+8 -8
.github/workflows/container-bigsky-ghcr.yaml
··· 1 - name: container-bigsky-ghcr.yaml 2 - on: 3 - push: 4 - branches: 5 - - main 1 + name: container-bigsky-ghcr 2 + on: [push] 6 3 env: 7 4 REGISTRY: ghcr.io 5 + USERNAME: ${{ github.actor }} 6 + PASSWORD: ${{ secrets.GITHUB_TOKEN }} 7 + 8 8 # github.repository as <account>/<repo> 9 9 IMAGE_NAME: ${{ github.repository }} 10 10 11 11 jobs: 12 - build: 12 + container-bigsky-ghcr: 13 13 runs-on: ubuntu-latest 14 14 permissions: 15 15 contents: read ··· 27 27 uses: docker/login-action@v2 28 28 with: 29 29 registry: ${{ env.REGISTRY }} 30 - username: ${{ github.actor }} 31 - password: ${{ secrets.GITHUB_TOKEN }} 30 + username: ${{ env.USERNAME }} 31 + password: ${{ env.PASSWORD }} 32 32 33 33 - name: Extract Docker metadata 34 34 id: meta