-
-
Notifications
You must be signed in to change notification settings - Fork 67
28 lines (26 loc) · 822 Bytes
/
docker.yml
File metadata and controls
28 lines (26 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Docker stuff
# uses https://github.com/docker/build-push-action
on:
release:
types: [published]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get the current tag name
shell: bash
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
id: branchStep
- name: Docker Build and Docker Push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: singlespa/import-map-deployer:${{ steps.branchStep.outputs.tag }},singlespa/import-map-deployer:latest