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 36c9d03
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
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: 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
if: ${{ github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: faforever/faf-website
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags') }}
tag_with_ref: true
tags: ${{ vars.DOCKER_ORG || 'faforever' }}/faf-website:${{github.ref_name}}

0 comments on commit 36c9d03

Please sign in to comment.