Skip to content

Commit

Permalink
ci: 💚 move setup to main step
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan6erbond committed May 9, 2023
1 parent 96485c3 commit a469fa0
Showing 1 changed file with 12 additions and 18 deletions.
30 changes: 12 additions & 18 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ env:
REGISTRY: ghcr.io

jobs:
setup:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
build-and-push:
runs-on: ubuntu-latest
permissions:
Expand All @@ -58,6 +40,18 @@ jobs:
- image: ${{ github.repository }}-server
context: "server"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
Expand Down

0 comments on commit a469fa0

Please sign in to comment.