This commit is contained in:
@@ -5,6 +5,7 @@ on: [push]
|
|||||||
jobs:
|
jobs:
|
||||||
Build-Docker-Image:
|
Build-Docker-Image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -12,10 +13,8 @@ jobs:
|
|||||||
registry: swaous.asuscomm.com
|
registry: swaous.asuscomm.com
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Set up Docker Buildx
|
- name: Build
|
||||||
uses: docker/setup-buildx-action@v3
|
run: |
|
||||||
- name: Build and push
|
docker build -t swaous.asuscomm.com/act-runner-test:${{ gitea.sha }} .
|
||||||
uses: docker/build-push-action@v6
|
docker push swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}
|
||||||
with:
|
echo "pushed swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}
|
||||||
push: true
|
|
||||||
tags: user/app:latest
|
|
||||||
|
|||||||
2
Containerfile
Normal file
2
Containerfile
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
FROM alpine:latest
|
||||||
|
CMD ["echo", "\"hello world\""]
|
||||||
Reference in New Issue
Block a user