-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (36 loc) · 920 Bytes
/
release.yml
File metadata and controls
44 lines (36 loc) · 920 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Release"
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: "ReleaseBuild"
runs-on: "ubuntu-latest"
permissions:
# required for all workflows
security-events: read
actions: write
contents: write
env:
TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@v4
- name: "Build"
run: |
docker build -t bruttazz/apod-api:$TAG .
working-directory: "."
- name: "Publish"
id: publish
run: |
docker login -u bruttazz -p "${{ secrets.DOCKER_HUB_TOKEN }}"
docker push bruttazz/apod-api:$TAG
working-directory: "."
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--title="$tag" \
--generate-notes