Added action to push to docker.io, updated latest version to alpine 3.20
This commit is contained in:
parent
ed82645c24
commit
52122134ac
|
@ -0,0 +1,152 @@
|
||||||
|
name: Build and Push Alpine Image to docker.io Registry
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and push image
|
||||||
|
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.io Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: docker.io
|
||||||
|
username: aprimediet
|
||||||
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
- name: Build and push 3.5
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.5
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.5
|
||||||
|
- name: Build and push 3.9
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.9
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.9
|
||||||
|
- name: Build and push 3.10
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.10
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.10
|
||||||
|
- name: Build and push 3.11
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.11
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.11
|
||||||
|
- name: Build and push 3.12
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.12
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.12
|
||||||
|
- name: Build and push 3.13
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.13
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.13
|
||||||
|
- name: Build and push 3.14
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.14
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.14
|
||||||
|
- name: Build and push 3.15
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.15
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.15
|
||||||
|
- name: Build and push 3.16
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.16
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.16
|
||||||
|
- name: Build and push 3.17
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.17
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.17
|
||||||
|
- name: Build and push 3.18
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.18
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.18
|
||||||
|
- name: Build and push 3.19
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.19
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.19
|
||||||
|
- name: Build and push 3.20
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.20
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/alpine:3.20
|
||||||
|
aprimediet/alpine:latest
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Alpine Image
|
name: Build and Push Alpine Image to Winter Access Registry
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -139,4 +139,14 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.winteraccess.id/${{ gitea.repository }}:3.19
|
git.winteraccess.id/${{ gitea.repository }}:3.19
|
||||||
|
- name: Build and push 3.20
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.20
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:3.20
|
||||||
git.winteraccess.id/${{ gitea.repository }}:latest
|
git.winteraccess.id/${{ gitea.repository }}:latest
|
Loading…
Reference in New Issue