-
Notifications
You must be signed in to change notification settings - Fork 14
55 lines (44 loc) · 1.41 KB
/
goca-rest-api-docker-dev.yml
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
45
46
47
48
49
50
51
52
53
54
55
name: GoCA REST API Docker test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: 1.21
id: go
- name: Set up Docker
uses: docker-practice/actions-setup-docker@v1
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GPR_TOKEN }}
registry: docker.pkg.github.com
repository: kairoaraujo/goca/goca-rest-api
tag_with_ref: true
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: kairoaraujo/goca:dev
- name: Update repo description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: kairoaraujo/goca
readme-filepath: ./DOCKER_README.md