-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (31 loc) · 1.08 KB
/
dockerhub.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
name: Build Release Docker Images
on:
push:
branches:
- "APPS-1196-create-promote-to-docker-hub-action"
workflow_dispatch:
jobs:
build-images:
runs-on: ubuntu-latest
steps:
- name: Checkout Automation Code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: docker.io
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Promote to DockerHub
# run: |
# docker buildx imagetools create \
# --tag "docker.io/davi17g/${{ github.event.inputs.service }}:${{ github.ref_name }}" \
# --tag "docker.io/davi17g/${{ github.event.inputs.service }}:latest"
# "aerospike.jfrog.io/ecosystem-container-prod-local/aerospike-backup-service:${{ github.ref_name }}"
- name: Promote to DockerHub
run: |
echo "${GITHUB_REPOSITORY#*/}"