Initial commit/release
commit
503c0022f8
|
@ -0,0 +1,22 @@
|
|||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build_push:
|
||||
runs-on: ubuntu-latest
|
||||
container: docker:latest
|
||||
env:
|
||||
REGISTRY: git.gertjankrol.nl
|
||||
IMAGE_NAMESPACE: docker/toolkit
|
||||
steps:
|
||||
- name: Install dependencies # not present in `docker` container but needed for `checkout` action
|
||||
run: apk add --no-cache git nodejs
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Docker login
|
||||
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} https://${REGISTRY}
|
||||
- name: Build and push container
|
||||
run: docker build . -t ${REGISTRY}/${IMAGE_NAMESPACE}:${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:latest --push
|
|
@ -0,0 +1,19 @@
|
|||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
test_build:
|
||||
runs-on: ubuntu-latest
|
||||
container: docker:latest
|
||||
steps:
|
||||
- name: Install dependencies # not present in `docker` container
|
||||
run: apk add --no-cache git nodejs
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Build containers
|
||||
run: docker build . -t toolkit-test:${{ github.ref_name }}
|
||||
- name: Inspect image
|
||||
run: docker image inspect toolkit-test:${{ github.ref_name }}
|
|
@ -0,0 +1,7 @@
|
|||
# Changelog
|
||||
All notable changes to this package will be documented in this file
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 1.0.0 - 2023-05-28
|
||||
- Initial release [major]
|
|
@ -0,0 +1,4 @@
|
|||
FROM alpine:3.18
|
||||
|
||||
# Install base tools
|
||||
RUN apk add --no-cache curl docker git htop nodejs npm unzip zip
|
Loading…
Reference in New Issue