This commit is contained in:
@@ -5,6 +5,7 @@ on: [push]
|
||||
jobs:
|
||||
Build-Docker-Image:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
@@ -12,10 +13,8 @@ jobs:
|
||||
registry: swaous.asuscomm.com
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: user/app:latest
|
||||
- name: Build
|
||||
run: |
|
||||
docker build -t swaous.asuscomm.com/act-runner-test:${{ gitea.sha }} .
|
||||
docker push swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}
|
||||
echo "pushed swaous.asuscomm.com/act-runner-test:${{ gitea.sha }}
|
||||
|
||||
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