Skip to content

Commit

Permalink
Push containers to boostorg/mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
anarthal committed Jul 10, 2024
1 parent 3faf294 commit eb7e360
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- { image: mariadb, dockerfile: mariadb, platforms: "linux/amd64, linux/arm64/v8" }

permissions:
contents: read
packages: write
contents: read # checkout
packages: write # publish Docker packages

runs-on: ubuntu-latest

Expand All @@ -61,8 +61,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: anarthal-containers
password: ${{ secrets.ANARTHAL_CONTAINERS_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
Expand All @@ -72,4 +72,4 @@ jobs:
file: tools/docker/${{ matrix.dockerfile }}.dockerfile
build-args: ${{ matrix.build-args }}
platforms: ${{ matrix.platforms }}
tags: ghcr.io/anarthal-containers/${{ matrix.image }}:${{ github.sha }}, ghcr.io/anarthal-containers/${{ matrix.image }}:latest
tags: ghcr.io/${{ github.repository }}/${{ matrix.image }}:${{ github.sha }}, ghcr.io/${{ github.repository }}/${{ matrix.image }}:latest
10 changes: 5 additions & 5 deletions .github/workflows/docker-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
- { image: build-msvc14_3, base-image: "cppalliance/dronevs2022:1" }

permissions:
contents: read
packages: write
contents: read # checkout
packages: write # publish Docker packages

runs-on: windows-2019

Expand All @@ -41,11 +41,11 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: anarthal-containers
password: ${{ secrets.ANARTHAL_CONTAINERS_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
run: |
FULL_IMAGE=ghcr.io/anarthal-containers/${{ matrix.image }}
FULL_IMAGE=${{ github.repository }}/${{ matrix.image }}
docker build -f tools/docker/build-msvc.dockerfile --build-arg BASE_IMAGE=${{ matrix.base-image }} -t $FULL_IMAGE:$GITHUB_SHA -t $FULL_IMAGE:latest .
docker push $FULL_IMAGE --all-tags

0 comments on commit eb7e360

Please sign in to comment.