Skip to content
Snippets Groups Projects
Unverified Commit c0d77094 authored by Griefed's avatar Griefed :joystick: Committed by GitHub
Browse files

ci: Get branch name of pull request for Docker

parent df2cea56
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,11 @@ jobs: ...@@ -10,6 +10,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v5
- name: Setup Node.js environment - name: Setup Node.js environment
uses: actions/setup-node@v2.5.0 uses: actions/setup-node@v2.5.0
with: with:
...@@ -47,15 +52,15 @@ jobs: ...@@ -47,15 +52,15 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
build-args: BRANCH_OR_TAG=${{ github.ref_name }} build-args: BRANCH_OR_TAG=${{ steps.branch-name.outputs.current_branch }}
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64 platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true push: true
tags: | tags: |
ghcr.io/griefed/ltt-mapmaker:${{ github.ref_name }} ghcr.io/griefed/ltt-mapmaker:${{ steps.branch-name.outputs.current_branch }}
ghcr.io/griefed/ltt-mapmaker:${{ github.ref_name }}-${{ github.sha }} ghcr.io/griefed/ltt-mapmaker:${{ steps.branch-name.outputs.current_branch }}-${{ github.sha }}
griefed/ltt-mapmaker:${{ github.ref_name }} griefed/ltt-mapmaker:${{ steps.branch-name.outputs.current_branch }}
griefed/ltt-mapmaker:${{ github.ref_name }}-${{ github.sha }} griefed/ltt-mapmaker:${{ steps.branch-name.outputs.current_branch }}-${{ github.sha }}
electron: electron:
needs: test needs: test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment