-
Notifications
You must be signed in to change notification settings - Fork 30
37 lines (31 loc) · 1.11 KB
/
patch.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
name: Docker Develop Release
on:
push:
branches: [ patch-* ]
pull_request:
branches: [ patch-* ]
jobs:
docker-latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: checkout the repo
run: |
docker login --username ${{ secrets.GH_USERNAME }} --password ${{ secrets.GH_TOKEN }} ghcr.io
docker build --build-arg BRANCH=$(git rev-parse --abbrev-ref HEAD) -t ghcr.io/drazzilb08/userscripts:${{ github.ref_slug }} .
docker push ghcr.io/drazzilb08/userscripts:${{ github.ref_slug }}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
build-args: |
"BRANCH=patch"
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/userscripts:${{ github.ref_slug }}