forked from AckeeDevOps/docker-gitlab-builder-android
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 732 Bytes
/
deploy.yml
File metadata and controls
31 lines (26 loc) · 732 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
name: Deploy
on:
push:
tags:
- v*
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@v6
# We need to login to dhi.io for getting hardened base image and to Docker Hub for pushing the image
- name: Login
uses: ./.github/actions/login
with:
user-name: ${{ secrets.DOCKER_HUB_USERNAME }}
token: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Preflight checks
uses: ./.github/actions/common-preflight-check
with:
image-tag: ${{ github.ref_name }}
- name: Push image
shell: bash
env:
IMAGE_TAG: ${{ github.ref_name }}
run: docker compose push