2024-09-12 19:53:08 +12:00
|
|
|
name: Build and Push Image
|
2024-09-12 20:02:17 +12:00
|
|
|
on: [ push, workflow_dispatch ]
|
2024-09-12 19:53:08 +12:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build and push image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: catthehacker/ubuntu:act-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.stardust.wtf
|
|
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
|
|
|
run: |
|
|
|
|
cd xfce-custom
|
|
|
|
TODAY=$(date +'%Y-%m-%d')
|
|
|
|
docker build -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:xfce-custom-${TODAY} -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:xfce-custom-git .
|
|
|
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:xfce-custom-${TODAY}
|
|
|
|
docker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:xfce-custom-git
|