diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index f9fa77f..f5e5091 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -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 }} diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..9fd5fbb --- /dev/null +++ b/Containerfile @@ -0,0 +1,2 @@ +FROM alpine:latest +CMD ["echo", "\"hello world\""]