Skip to content

Commit

Permalink
Update deprecated Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoffo committed Apr 25, 2023
1 parent 48e850b commit 2108d2b
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Docker Login
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DockerHubUser }}
password: ${{ secrets.DockerHubPass }}
Expand All @@ -35,7 +35,7 @@ jobs:
echo ::set-output name=image::${IMAGE}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: ${{ steps.prep.outputs.image }}
flavor: |
Expand All @@ -48,18 +48,18 @@ jobs:
type=semver,pattern={{major}},enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
######################################################
# Setup Cache and BuildX
######################################################
######################################################
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
######################################################
# Build!
######################################################
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
cache-from: "type=gha"
cache-to: "type=gha,mode=max"
Expand All @@ -74,7 +74,7 @@ jobs:
local:
runs-on: self-hosted
if: github.ref_name == 'main'
if: github.ref_name == 'main'
needs: main
steps:
- name: Checkout
Expand All @@ -96,16 +96,16 @@ jobs:
# Setup Cache and BuildX
######################################################
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host

- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
######################################################
Expand All @@ -125,7 +125,7 @@ jobs:
platforms: linux/amd64,linux/arm64
build-args: |
COMPOSER_AUTH=${{ secrets.ComposerAuth }}
check-org:
runs-on: ubuntu-latest
outputs:
Expand All @@ -136,20 +136,20 @@ jobs:
run: echo "::set-output name=defined::true"
env:
SentryOrg: ${{ secrets.SentryOrg }}

publish-sentry:
runs-on: ubuntu-latest
needs: [check-org]
if: ${{ ( github.event_name == 'release' || github.event.action == 'created' ) && needs.check-org.outputs.check-org == 'true' }}
steps:
- uses: actions/checkout@v2

- name: Prepare Project
id: project
run: |
PROJECT=${GITHUB_REPOSITORY#*/}
echo ::set-output name=project::${PROJECT}
- name: Notify Sentry of new Release
uses: getsentry/action-release@v1
env:
Expand All @@ -158,5 +158,4 @@ jobs:
SENTRY_PROJECT: ${{ steps.project.outputs.project }}
with:
set_commits: skip
version: ${{ github.ref }}

version: ${{ github.ref }}

0 comments on commit 2108d2b

Please sign in to comment.