38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: Build and Push Alpine Image
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and push image
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v3
|
|
- name: Login to Docker Winter Access Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.winteraccess.id
|
|
username: aditya.prima
|
|
password: ${{ secrets.PATOKEN }}
|
|
- name: Login to Docker Hub Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: docker.io
|
|
username: aprimediet
|
|
password: ${{ secrets.DOCKER_TOKEN }}
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile
|
|
build-args: |
|
|
ALPINE_VERSION=3.18
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:3.18
|
|
aprimediet/alpine:3.18 |