name: Build and Push Alpine NodeJS Image to Winter Access Registry on: push: branches: - master jobs: build: name: Build and push image (Root User) runs-on: ubuntu-latest container: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - name: Check out repository code uses: actions/checkout@v3 - name: Login to Docker Winter Access Git Registry uses: docker/login-action@v3 with: registry: git.winteraccess.id username: aditya.prima password: ${{ secrets.PATOKEN }} - name: Build and push uses: docker/build-push-action@v5 with: context: . file: Dockerfile.alpine push: true tags: | git.winteraccess.id/${{ gitea.repository }}:alpine git.winteraccess.id/${{ gitea.repository }}:latest-alpine git.winteraccess.id/${{ gitea.repository }}:latest build-rootless: name: Build and push image (rootless) runs-on: ubuntu-latest container: image: ghcr.io/catthehacker/ubuntu:act-latest steps: - name: Check out repository code uses: actions/checkout@v3 - name: Login to Docker Winter Access Git Registry uses: docker/login-action@v3 with: registry: git.winteraccess.id username: aditya.prima password: ${{ secrets.PATOKEN }} - name: Build and push uses: docker/build-push-action@v5 with: context: . file: Dockerfile.alpine-rootless push: true tags: | git.winteraccess.id/${{ gitea.repository }}:rootless-alpine git.winteraccess.id/${{ gitea.repository }}:rootless git.winteraccess.id/${{ gitea.repository }}:latest-rootless-alpine git.winteraccess.id/${{ gitea.repository }}:latest-rootless