Ayaka
018652750f
Some checks failed
Build and Push Image / Build and push dev image (push) Failing after 3h13m41s
brain NOT working guh
30 lines
965 B
YAML
30 lines
965 B
YAML
name: Build and Push Image
|
|
on: [ push, workflow_dispatch ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and push dev 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')
|
|
REGISTRY=git.stardust.wtf
|
|
REPO_OWNER=iridium
|
|
IMAGE_NAME=neko
|
|
docker buildx 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 |