Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaps committed Nov 7, 2023
1 parent 511a4bd commit 2e6e209
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,31 @@ name: Website Docker Release
on: [ push, pull_request ]

jobs:
build:

docker:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Build and push Docker images
uses: docker/[email protected]
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.DOCKER_ORG || 'faforever' }}
tags: type=ref,event=branch
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: faforever/faf-website
push: ${{ github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') }}
tag_with_ref: true
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.ref_name == 'develop' || startsWith(github.ref, 'refs/tags') }}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 2e6e209

Please sign in to comment.